import request from '../../utils/request'

export function getHot(params) {
  return request.ajax({
      url: `/mall/product/getHot`,
      method: 'post',
      params
  })
}
export function getList(params) {
  return request.ajax({
      url: `/mall/product/getList`,
      method: 'post',
      params
  })
} 
export function getDetail(id) {
  let params = {productId:id}
  return request.ajax({
      url: `/mall/product/getDetail`,
      method: 'post',
      params
  })
} 
export function checkCan(id) {
  return request.ajax({
      url: `/mall/product/checkCan/${id}`,
      method: 'post',
  })
} 
